﻿<shared:UserControlBase x:Class="Bymed.SpineScan.WPF.CustomizedUserControl.PatientBasicInfoDisplayUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="clr-namespace:Bymed.SpineScan.WPF.Shared"
             mc:Ignorable="d" 
             d:DesignHeight="469" d:DesignWidth="229">
    <Border Padding="10">
        <Border.Background>
            <ImageBrush ImageSource="/Bymed.SpineScan.WPF;component/Skins/Resource/Image/PatientInfoBackground.png" />
        </Border.Background>
        <Grid>
            <Grid.RowDefinitions>
                <!-- User Picture & Info Title -->
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid>
                <Grid.RowDefinitions>
                    <!-- User Picture -->
                    <RowDefinition Height="Auto" />
                    <!-- User Info Title -->
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Image Source="/Bymed.SpineScan.WPF;component/Skins/Resource/Image/UserPicture.png" Width="129" />
                <TextBlock Grid.Row="1" Text="被测者信息" HorizontalAlignment="Center" Style="{StaticResource PatientInfoTextBlock}" />
            </Grid>
            <Grid Grid.Row="1" Margin="10">
                <Grid.ColumnDefinitions>
                    <!-- Info Label -->
                    <ColumnDefinition Width="Auto" />
                    <!-- Info Value -->
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="25" />
                    <RowDefinition Height="25" />
                    <RowDefinition Height="25" />
                    <RowDefinition Height="25" />
                    <RowDefinition Height="25" />
                </Grid.RowDefinitions>
                <TextBlock Text="编号：" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Column="1" Text="{Binding Number}" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Row="1" Text="姓名：" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Name}" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Row="2" Text="性别：" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Column="1" Grid.Row="2" Text="{Binding GenderDisplay}" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Row="3" Text="生日：" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Column="1" Grid.Row="3" Text="{Binding BirthdayDisplay}" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Row="4" Text="备注：" Style="{StaticResource PatientInfoTextBlock}" />
                <TextBlock Grid.Column="1" Grid.Row="4" TextWrapping="Wrap" Text="{Binding Remark}" Style="{StaticResource PatientInfoTextBlock}" />
            </Grid>
        </Grid>
    </Border>
</shared:UserControlBase>
